#include <stdio.h>

int main(int argc, char const *argv[])
{
    char week[][10]={"Mon","Tue","Wed","Thurs","Fri","Sat","Sun"};

  /*这个二维数组一共有7行10列， 一共有70个元素， 每一个元素是char 类型的， 这个数组占用70个字节*/
    printf("sizeof(week) = %d \n",sizeof(week));
  /*week[0] ，把二维数组降为理解成一个一位数组，week中有7个元素，分别是week[0],week[1],week[2],week[3],week[4],week[5],week[6],
   *每一个元素又有10个子元素，week[0]有10子元素，每一个子元素是char类型的，week[0]占用10个字节
  */ 
    printf("sizeof(week[0]) = %d \n",sizeof(week[0]));
    for(int i=0;i<sizeof(week)/sizeof(week[0]);i++)//可以自动计算出数组元素的个数
    {
        printf("%s ",week[i]);
    }
    printf("\n");

    return 0;
}
